package file;

import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description: File类方法（6）
 * User: 王圆豪
 * Date: 2025-05-09
 * Time: 21:49
 */
public class Demo6 {
    public static void main(String[] args) throws IOException {
        File file = new File("./test.txt/111/222/333/test1.txt");
//        System.out.println(file.mkdirs());
//        System.out.println(file.createNewFile());
        System.out.println(file.delete());
//        File file1 = new File("./test1.txt");
//        System.out.println(file1.renameTo(file));
    }
}
